import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { MenuData } from './menu'

@Injectable()
export class MenuService {
  constructor(private http: HttpClient) {
    this.getJSON().subscribe(data => {
      console.log(data)
    });
  }

  public getJSON(): Observable<any> {
    return this.http.get("../assets/menu.json")
  }
}
